package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zksk.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 产品咨询信息表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-30
 */
@Data
@Accessors(chain = true)
@TableName("platform_fact_consult")
@ApiModel(value = "Consult对象", description = "产品咨询信息表")
public class Consult extends BaseEntity
{

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("企业id")
    @TableField("member_id")
    private Long memberId;

    @ApiModelProperty("企业名称")
    @TableField("member_name")
    private String memberName;

    @ApiModelProperty("咨询产品ID")
    @TableField("product_enum_id")
    private Long productEnumId;

    @ApiModelProperty("咨询产品名称")
    @TableField("product_enum_name")
    private String productEnumName;

    @ApiModelProperty("咨询内容")
    @TableField("`desc`")
    private String desc;

    @ApiModelProperty("删除标识（0 正常 2 删除）")
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String MEMBER_ID = "member_id";

    public static final String MEMBER_NAME = "member_name";

    public static final String PRODUCT_ENUM_ID = "product_enum_id";

    public static final String PRODUCT_ENUM_NAME = "product_enum_name";

    public static final String DESC = "desc";

    public static final String DEL_FLAG = "del_flag";

    @Override
    public Serializable pkVal()
    {
        return this.id;
    }

}
